<?php
/**
 * Created by PhpStorm.
 * User: xuke
 * Date: 16/6/7
 * Time: 下午4:06
 */
namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;

class VerifyToken
{
    //这个中间间,主要是验证用户token是否合法
    public function handle($request, Closure $next, $guard = null)
    {
        Auth::guard($guard)->getAccessToken();

        return $next($request);
    }
}